import sys

try:
    a = int(sys.argv[1])
    b = int(sys.argv[2])
    c = a / b
    print("两数相除的结果：", c)
except Exception as e:
    print("索引错误")
    print(e.args)
    # print(e.errno)
    print(e.strerror)
except ValueError:
    print("数值错误")
